import service from '@/utils/request'


export const useCouSubmitApi = (data: any) => {
    if (data.id) return service.put('/sys/course', data)
    else return service.post('/sys/course', data)
}

export const useGetCouInfoApi = (id: string) => {
    return service.get('/sys/course/info/' + id)
}
export const useCouSelectApi = () => {
    return service.get('/sys/course')
}
export const useSemesterCourseSelectApi = (data: any) => {
    return service.get('/select/add-course', {
        params: data
    })
}

